//
//  JFInternationalHelper.h
//  JFBase
//
//  Created by Alan Wang on 2019/3/6.
//  Copyright © 2019 Alan Wang. All rights reserved.
//

#import <Foundation/Foundation.h>

#define KNotify_Language_Changed  @"kJF_Notify_Language_Changed"
#define KNotify_FontScale_Changed  @"kJF_KNotify_FontScale_Changed"


#define JFMainLocalizedString(key)  [JFInternationalHelper localizedStringWithKey:key]
#define JFLocalizedString(key, buddleName)  [JFInternationalHelper localizedStringWithKey:key withBuddleName:buddleName]

NS_ASSUME_NONNULL_BEGIN




@interface JFInternationalHelper : NSObject

//scale 只接受[1 5]的数据 默认为3 对应缩放系数[0.8 1.2]
+(void)fontScaleCoefficient:(NSUInteger)scale;
+(NSUInteger)getFontScaleCoefficient;
//language  eg:en.lproj  language = en
+(void)changeLanguage:(NSString*)language;
//读取main buddle下的语言文件
+(NSString *)localizedStringWithKey:(NSString *)key;
//读取指定buddle下的语言文件
+(NSString *)localizedStringWithKey:(NSString *)key withBuddleName:(NSString *)buddleName;
//获取当前的语言
+ (NSString*)currentLanguage;

@end

NS_ASSUME_NONNULL_END
